package rentals;

import java.util.*;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		ArrayList dvds = new ArrayList();
		
		Dvd d1 = new Dvd("The Shawshank Redemption", "Frank Darabont");
		dvds.add(d1);
		Dvd d2 = new Dvd("The Godfather", "Francis Ford Coppola");
		dvds.add(d2);
		Dvd d3 = new Dvd("The Good, the Bad and the Ugly", "Sergio Leone");
		dvds.add(d3);
		Dvd d4 = new Dvd("Pulp Fiction", "Quentin Tarantino");
		dvds.add(d4);
		
		Shop shop = new Shop(dvds);
		
		shop.printAvailable();
		
		JuniorMemeber jm = new JuniorMemeber("Jimmy");
		SeniorMember sm = new SeniorMember("Sandy");
		
		shop.addMemeber(jm);
		shop.addMemeber(sm);
		
		shop.dvdRented(jm, d1);
		shop.dvdRented(jm, d2);
		shop.dvdRented(jm, d3);
		
		shop.dvdReturned(jm, d1);
		shop.dvdReturned(jm, d2);
		
		
		
		
	}
}
